package com.company.model.request;

import javax.validation.constraints.NotNull;

/**
 * 评论查询对象
 * Created by tu on 2017/7/7.
 */
public class CommentQuery extends PageQuery {

  private static final long serialVersionUID = 7157200155783888036L;

  @NotNull(message = "公司信息错误")
  private Long companyId;

  /**
   * 父评论ID
   */
  private Long parentId;

  public Long getCompanyId() {
    return companyId;
  }

  public void setCompanyId(Long companyId) {
    this.companyId = companyId;
  }

  public Long getParentId() {
    return parentId;
  }

  public void setParentId(Long parentId) {
    this.parentId = parentId;
  }

  @Override
  public String toString() {
    return "CommentQuery{" +
        "page=" + page +
        ", pageSize=" + pageSize +
        ", companyId=" + companyId +
        ", parentId=" + parentId +
        '}';
  }
}